package com.oba.base.dao;

import com.oba.base.interfaces.IHsqlBuilder;
import com.oba.king.sysmanager.Dept;

public class Test {
	public static void main(String[] args) {
		IHsqlBuilder sql = HsqlBuilder.create("from UserInfo u", new BaseDao());
		//sql.add("u.id=?",new Long(1));
		sql.add("u.password=?",new String("abc"));
		Dept d = new Dept();
		d.setId(1L);
		sql.add("u.dept=?",d);
		sql.addend("order by u.account");
		sql.build();
		System.out.println(sql.getHsql());
	}
}
